<!-- 实际详情 -->
<template>
  <div class="clas_All">
    <!-- <el-form class="const_top" :model="queryParams" size="small" :inline="true">
      <el-row>
        <el-col style="padding: 10px" :span="10">
          <el-form-item prop="" style="height: 40px">
            <el-date-picker
              clearable
              v-model="queryParams.createdTime"
              type="date"
              value-format="yyyy-MM-dd"
              placeholder="请选择创建时间"
            >
            </el-date-picker>
          </el-form-item>
          <el-form-item prop="" style="height: 40px">
            <el-select
              v-model="queryParams.revision"
              placeholder="1号至10号"
              clearable
            >
              <el-option
                v-for="dict in examineOption"
                :key="dict.value"
                :label="dict.label"
                :value="dict.value"
              />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="4" style="padding: 10px">
          <el-form-item>
            <el-button type="primary" size="mini" @click="handleQuery"
              >查询
            </el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form> -->
    <div>
      <el-row>
        <el-col>
          <el-table :data="tableDataOne">
            <!-- <el-table-column align="center" prop="deptName" label="性质">
            </el-table-column>
            <el-table-column align="center" prop="" label="日期">
            </el-table-column>
            <el-table-column align="center" prop="stapName" label="输单日期">
            </el-table-column> -->
            <el-table-column align="center" prop="price" label="单价">
            </el-table-column>
            <el-table-column align="center" prop="num" label="数量">
            </el-table-column>
            <el-table-column align="center" prop="num" label="数量小计">
            </el-table-column>
            <el-table-column align="center" prop="price" label="金额 ">
            </el-table-column>
            <el-table-column align="center" prop="price" label="金额小计">
            </el-table-column>
            <el-table-column align="center" prop="price" label="均价">
            </el-table-column>
            <!-- <el-table-column align="center" prop="stapName" label="价差">
            </el-table-column> -->
            <!-- <el-table-column align="center" prop="prolossAmout" label="单据号">
            </el-table-column> -->
            <!-- <el-table-column
              align="center"
              prop="prolossNum"
              label="供应商跟部门"
            >
            </el-table-column> -->
            <!-- <el-table-column align="center" prop="stapName" label="输单员">
            </el-table-column>
            <el-table-column align="center" prop="stapName" label="说明">
            </el-table-column>
            <el-table-column align="center" prop="stapName" label="备注">
            </el-table-column> -->
          </el-table>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import { stapprolossInfo } from "@/api/system/cost";
export default {
  data() {
    return {
      queryParams: {
        deptCode: "",
        pandianCode: "",
        stapCode: "",
        type: "0",
      },
      examineOption: [],
      tableDataOne: [],
    };
  },
  created() {
    this.queryParams.pandianCode = this.$route.query.pandianCode;
    this.queryParams.deptCode = this.$route.query.deptCode;
    this.queryParams.stapCode = this.$route.query.stapCode;
    this.getList();
  },
  methods: {
    getList() {
      stapprolossInfo(this.queryParams).then((res) => {
        if (res.code == 200) {
          this.tableDataOne = res.data;
        }
      });
    },
    handleQuery() {},
  },
};
</script>

<style lang="scss" scoped>
.clas_All {
  margin: 20px;
}
</style>
